package com.huayue.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.huayue.dao.BaseDao;
import com.huayue.dao.RoomDepositDao;
import com.huayue.entity.RoomDeposit;

/**
 * 押金
 */
@Service
public class RoomDepositService extends BaseService<RoomDeposit> {

    @Autowired
    RoomDepositDao roomDepositDao;

    @Override
    public BaseDao<RoomDeposit> getDao() {
        return roomDepositDao;
    }

    public int returnDepositById(Integer id) {
        return roomDepositDao.returnDepositById(id);
    }
}
